package com.ruoyi.baoming.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.baoming.mapper.ExamOrderMapper;
import com.ruoyi.baoming.domain.ExamOrder;
import com.ruoyi.baoming.service.IExamOrderService;

/**
 * 考试报名订单信息Service业务层处理
 * 
 * @author xiaosong
 * @date 2024-11-20
 */
@Service
public class ExamOrderServiceImpl implements IExamOrderService 
{
    @Autowired
    private ExamOrderMapper examOrderMapper;

    /**
     * 查询考试报名订单信息
     * 
     * @param id 考试报名订单信息主键
     * @return 考试报名订单信息
     */
    @Override
    public ExamOrder selectExamOrderById(Long id)
    {
        return examOrderMapper.selectExamOrderById(id);
    }

    /**
     * 查询考试报名订单信息列表
     * 
     * @param examOrder 考试报名订单信息
     * @return 考试报名订单信息
     */
    @Override
    public List<ExamOrder> selectExamOrderList(ExamOrder examOrder)
    {
        return examOrderMapper.selectExamOrderList(examOrder);
    }

    /**
     * 新增考试报名订单信息
     * 
     * @param examOrder 考试报名订单信息
     * @return 结果
     */
    @Override
    public int insertExamOrder(ExamOrder examOrder)
    {
        return examOrderMapper.insertExamOrder(examOrder);
    }

    /**
     * 修改考试报名订单信息
     * 
     * @param examOrder 考试报名订单信息
     * @return 结果
     */
    @Override
    public int updateExamOrder(ExamOrder examOrder)
    {
        return examOrderMapper.updateExamOrder(examOrder);
    }

    /**
     * 批量删除考试报名订单信息
     * 
     * @param ids 需要删除的考试报名订单信息主键
     * @return 结果
     */
    @Override
    public int deleteExamOrderByIds(Long[] ids)
    {
        return examOrderMapper.deleteExamOrderByIds(ids);
    }

    /**
     * 删除考试报名订单信息信息
     * 
     * @param id 考试报名订单信息主键
     * @return 结果
     */
    @Override
    public int deleteExamOrderById(Long id)
    {
        return examOrderMapper.deleteExamOrderById(id);
    }
}
